package com.mengyan.manage.cms.service;

import com.mengyan.framework.domain.cms.CmsConfig;
import com.mengyan.framework.domain.cms.CmsPage;
import com.mengyan.framework.domain.cms.request.QueryPageRequest;
import com.mengyan.framework.domain.cms.response.CmsPageResult;
import com.mengyan.framework.model.response.QueryResponseResult;
import com.mengyan.framework.model.response.ResponseResult;

public interface PageService {
    QueryResponseResult findList(int page, int size, QueryPageRequest queryPageRequest);

    //新增页面
    CmsPageResult add(CmsPage cmsPage);

    //根据id查询页面
    CmsPageResult getById(String id);

    //修改页面
    CmsPageResult update(String id, CmsPage cmsPage);

    ResponseResult delete(String id);

    CmsConfig getConfigById(String id);

    //页面静态化
    String getPageHtml(String pageId);
}
